package org.example.test1;

public class Cat extends Pet{
    private String bread;

    public Cat() {
    }

    public Cat(String name, int love, int health) {
        super(name, love, health);
    }

    public Cat(String bread) {
        this.bread = bread;
    }

    public Cat(String name, int love, int health, String bread) {
        super(name, love, health);
        this.bread = bread;
    }

    public void showCatInfo(){
        System.out.println(this.getName()+this.bread);
    }
//    @Override
//    public void eat() {
//
//        System.out.println(this.getName()+"正在吃鱼");
//    }
}
